Deprecated a few more things
authorPierre Krieger <pierre.krieger1708@gmail.com>
Mon, 27 Oct 2014 16:26:49 +0000 (17:26 +0100)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 5 Nov 2014 19:37:34 +0000 (11:37 -0800)
src/cargo/ops/cargo_rustc/compilation.rs
src/cargo/ops/cargo_rustc/layout.rs
src/cargo/ops/cargo_rustc/mod.rs

index 646c79a384b3f450d306ced2ee6085128a954bf2..381cf968847a19cf28983facecbe458d5bb34ab1 100644 (file)
@@ -23,6 +23,7 @@ pub struct Compilation {
     ///
     /// This is currently used to drive some entries which are added to the
     /// LD_LIBRARY_PATH as appropriate.
+    // TODO: deprecated, remove
     pub native_dirs: HashMap<PackageId, Path>,
 
     /// Root output directory (for the local package's artifacts)
@@ -43,7 +44,7 @@ impl Compilation {
     pub fn new(pkg: &Package) -> Compilation {
         Compilation {
             libraries: HashMap::new(),
-            native_dirs: HashMap::new(),
+            native_dirs: HashMap::new(),  // TODO: deprecated, remove
             root_output: Path::new("/"),
             deps_output: Path::new("/"),
             tests: Vec::new(),
index 65036d1c8bdf7aaaa885ba51e741004249d3e547..1443ff1ba6344369d8dc1c821721d7a26c8267db 100644 (file)
@@ -165,6 +165,8 @@ impl Layout {
     pub fn dest<'a>(&'a self) -> &'a Path { &self.root }
     pub fn deps<'a>(&'a self) -> &'a Path { &self.deps }
     pub fn examples<'a>(&'a self) -> &'a Path { &self.examples }
+
+    // TODO: deprecated, remove
     pub fn native(&self, package: &Package) -> Path {
         self.native.join(self.pkg_dir(package))
     }
@@ -183,6 +185,8 @@ impl Layout {
     pub fn old_dest<'a>(&'a self) -> &'a Path { &self.old_root }
     pub fn old_deps<'a>(&'a self) -> &'a Path { &self.old_deps }
     pub fn old_examples<'a>(&'a self) -> &'a Path { &self.old_examples }
+
+    // TODO: deprecated, remove
     pub fn old_native(&self, package: &Package) -> Path {
         self.old_native.join(self.pkg_dir(package))
     }
@@ -224,6 +228,7 @@ impl<'a> LayoutProxy<'a> {
 
     pub fn examples(&self) -> &'a Path { self.root.examples() }
 
+    // TODO: deprecated, remove
     pub fn native(&self, pkg: &Package) -> Path { self.root.native(pkg) }
 
     pub fn build(&self, pkg: &Package) -> Path { self.root.build(pkg) }
@@ -236,6 +241,7 @@ impl<'a> LayoutProxy<'a> {
 
     pub fn old_examples(&self) -> &'a Path { self.root.old_examples() }
 
+    // TODO: deprecated, remove
     pub fn old_native(&self, pkg: &Package) -> Path {
         self.root.old_native(pkg)
     }
index 72a6f3ec1f2436283f8f49ed0533b4633c2e91d8..afb1cd5d98417b5139a2584512e4ee44ed946d52 100644 (file)
@@ -809,6 +809,7 @@ fn build_deps_args(mut cmd: ProcessBuilder, target: &Target, package: &Package,
 
     // Traverse the entire dependency graph looking for -L paths to pass for
     // native dependencies.
+    // TODO: deprecated, remove
     let mut dirs = Vec::new();
     each_dep(package, cx, |pkg| {
         if pkg.get_manifest().get_build().len() > 0 {
@@ -871,6 +872,7 @@ pub fn process<T: ToCStr>(cmd: T, pkg: &Package,
     let mut search_path = DynamicLibrary::search_path();
     search_path.push(layout.deps().clone());
 
+    // TODO: deprecated, remove
     // Also be sure to pick up any native build directories required by plugins
     // or their dependencies
     let mut native_search_paths = HashSet::new();